package com.csglxt.domain;

import java.math.BigDecimal;

/**
 * 
 * @ClassName: OrderItem
 * @Description: 订单条目实体类
 * @author Delver_Si
 * @date 2015-5-28 下午10:36:29
 * 
 */

@SuppressWarnings("serial")
public class OrderItem implements java.io.Serializable {

    // Fields

    private String id;
    private Order order;
    private Goods goods;
    private BigDecimal number;

    // Constructors

    /** default constructor */
    public OrderItem() {
    }

    /** full constructor */

    // Property accessors

    public String getId() {
        return this.id;
    }

    public OrderItem(String id, Order order, Goods goods, BigDecimal number) {
        super();
        this.id = id;
        this.order = order;
        this.goods = goods;
        this.number = number;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Order getOrder() {
        return this.order;
    }

    public void setOrder(Order order) {
        this.order = order;
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public BigDecimal getNumber() {
        return this.number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "OrderItem [id=" + id + ", order=" + order + ", goods=" + goods
                + ", number=" + number + "]";
    }

}